package com.arpa.ntocc.common.domain.dto;

import com.arpa.ntocc.common.domain.entity.BasicEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * app端用户注册传参对象
 * @Author liuyj
 * @Date 2019-12-07 16:20:56
 */
@Data
@ApiModel(value="app端用户注册传参对象", description="app端用户注册传参对象")
public class PartyAppDTO extends BasicEntity {

    @ApiModelProperty(value = "用户类型，0 司机 1 车队物流公司  2发货人 3发货企业",required = true)
    @NotEmpty(message = "用户类型不能为空")
    private String partyType;

    @ApiModelProperty(value = "用户电话",required = true)
    @NotEmpty(message = "用户电话不能为空")
    private String phone;

    @ApiModelProperty(value = "用户名",required = true)
    @NotEmpty(message = "用户名不能为空")
    private String name;

    @ApiModelProperty(value = "用户密码，数字字母组合8位及以上",required = true)
    @NotEmpty(message = "用户密码不能为空")
    private String upass;

    @ApiModelProperty(value = "验证码",required = true)
    @NotEmpty(message = "验证码不能为空")
    private String verifyCode;

    @ApiModelProperty(value = "网点编码",required = true)
    @NotEmpty(message = "网点编码不能为空")
    private String branchCode;

}
